{% extends "home.html" %}

{% comment %}
 Production calculation page(portail) 
{% endcomment %}
<!-- body -->
<!-- ------------------------------------------------------- -->
<!-- header -->
{% block page-title %}Production{% endblock %}

{% block page-name %}Production{% endblock %}

{% comment %}{% block app %}PSES Calculations: Shopping list{% endblock %}{% endcomment %}

{% block myform %}
	<div id="formulaire">	
		<form id="myform" action="{% url "eve_scm.views.shoplist" %}" method="post">{% csrf_token %}
			<div>
			<h3>Controls</h3>
			<label class="search" for="search">Search :</label><input class="search" type="text" oninput="reduce_choices(this.value, 'id_typename', 'excluded')"><a href="{% url "eve_scm.views.reset" %}"><button type="button">Reset</button></a>
			</div>
			{{ form.as_table }}
			<input type="submit" value="submit" />
			<select id="excluded" style="display:none;"></select>
		</form>
	</div>
{% endblock %}


<!--  end header -->
<!-- ------------------------------------------------------- -->	


<!--<div>
<p>Django path : {{djangoRoot}}</p>
<p>Project path : {{projectPath}}</p>
<p>Site root path : {{sitePath}}</p>
<p>Static dir 1 path : {{staticDir1}}</p>
<p>Static dir 2 path : {{staticDir2}} </p> <p>Templates dir path : {{templateDir}}</p> 
</div>-->

{% comment %}
<!-- sidebar -->
<!-- ------------------------------------------------------- 	
{%block sidebar %}-->
	{%block controls %}
	<div id="formulaire">
	<h3>Controls</h3>
		<form id="myform" action="{% url "eve_scm.views.shoplist" %}" method="post">{% csrf_token %}
			Search : <input type="text" oninput="reduce_choices(this.value, 'id_typename', 'excluded')">
			{{ form.as_p }}
			<a href="{% url "eve_scm.views.reset" %}"><button type="button">Reset</button></a>
			<input type="submit" value="submit" />
			<select id="excluded" style="display:none;"></select>
		</form>
	</div>
{% endblock %}{% endcomment %}
<!-- ------------------------------------------------------- -->
<!--  content -->
{% block content %}
{% if see == 1 %}

	<div id="arbre">
		<h3>Production details</h3>
		<button onclick="hide_by_class('first')">Reduce All</button>
		<ul id="list_arbre">
			{% with first=1 list_mat=list_mat template_name="list_loop.html" %}
				{% include template_name %}
			{% endwith %}
		</ul>
	</div>
	<div id="prod">
		{% include "list_prod.html" with l=list_prod param='stage' %}
	</div>
	<div id="shop">
		{% include "list_plus.html" with l=list_shop param='name' %}		
	</div>

	<div id="test">

	</div>

{% endif %}

{% endblock %}


